---
title: "README for Channel Position-Related Analyses"
output: pdf_document
---


# Scripts for analysis of channel position effects

The R scripts in this folder run all analyses leveraging variation in FNC's channel positions across cable systems. Note that these scripts depend on raw transcripts which are licensed from Nexis and are not included in the archive. 






## Scripts in this folder

- `mediamark-analysis.R`: Analyzes the relationships between FNC channel positions and FNC viewership.
- `protest-analysis.R`: Analyzes the relationships between FNC channel positions or ratings and Tea Party rallies.
- `candidacy-analysis.R`: Analyzes the relationships between FNC channel positions and Tea Party candidacy.
- `donations-analysis-main.R`: Analyzes the relationships between FNC channel positions and individual campaign contributions to Tea Party candidates, non-Tea Party Republican candidates, and Democratic candidates.
- `donations-analysis-misc.R`: Analyzes heterogeneity in the relationships between FNC channel positions and individual campaign contributions to Tea Party candidates by donor attributes.
- `vote-analysis.R`: Analyzes the relationships between FNC channel positions and Republican primary voting for Tea Party candidates.





## Packages Required

The following R packages (available from CRAN) are needed to run the scripts in this folder:

- `tidyverse`
- `lubridate`
- `data.table`
- `haven`
- `fixest`
- `magrittr`
- `cobalt`
- `xtable`
- `ggplot2`
- `MASS`
- `plm`
- `lmtest`
- `broom`
- `ggthemes`
- `readr`
- `stringr`
- `stargazer`
- `doMC`






## Tables and Figures Generated



### From `mediamark-analysis.R`:

**Appendix Tables:**

- **Table C.1.1**: FNC Channel Positions on Cable Viewership (Extensive Margin).

- **Table C.2.1**: FNC Channel Positions on Cable Viewership (Intensive Margin).

- **Table C.2.1**: FNC Channel Positions on Cable Viewership (Extensive Margin), Heterogeneity by Respondent Attributes.

- **Table C.2.2**: FNC Channel Positions on Cable Viewership (Intensive Margin), Heterogeneity by Respondent Attributes.


### From `protest-analysis.R`:

**Main Tables:**

- **Table 3**: Effect of Exposure to Fox News On Tea Party Rally Size.

- **Table 4**: Effects of Tea Party Rally Size on Subsequent FNC Ratings (OLS).

**Appendix Table:**

- **Table D.3.1**: Effects of Tea Party Rally Size on Subsequent FNC Ratings (2SLS).

**Appendix Figure:**

- **Figure D.2.1**: Positive Association between Tea Party Rally Sizes and Pre-Rallies Average FNC Primetime Rating Across Counties.



### From `candidacy-analysis.R`:

**Appendix Tables:**

- **Table E.1**: No Evidence of Strategic Entry of Tea Party Candidates Based on Congressional District-Level Fox News Density.

- **Table E.2**: No Evidence of Strategic Entry of Tea Party Candidates Based on Congressional District-Level Weighted Average Fox News Channel Position.



### From `donations-analysis-main.R`:

**Main Table:**

- **Table 5**: FNC Effect on Zip Code-Level Total Itemized Contributions In Dollars.

**Appendix Tables:**

- **Table G.1.1**: FNC Effect on Zip Code-Level Total Itemized Contributions In Dollars (for Oster Ratio Calculation).

- **Table G.3.1**: FNC Effect on Zip Code-Level Total Number of Itemized Contributors.

- **Table G.4.1**: Stacked Regressions Comparing Zip Code-Level Total Itemized Contribution to Tea Party vs. Non-Tea Party Republican Candidates.

- **Table G.5.1**: FNC Effect on Zip Code-Level Total Itemized Contributions to Democratic Candidates.

- **Table G.5.2**: FNC Effect on Zip Code-Level Total Number of Itemized Contributors to Democratic Candidates.

**Appendix Figure:**

- **Figure G.2.1**: Residualized Scatter Plot For Table 9, Column 2.



### From `donations-analysis-misc.R`:

**Main Tables:**

- **Table 6**: Zip-Code Itemized Contributions (In Dollars) to Tea Party Candidates Among Existing vs. New Contributors.

- **Table 7**: Zip-Code Itemized Contributions (In Dollars) to Tea Party Candidates Across Existing Contributors.

- **Table 8**: Zip-Code Itemized Contributions (In Dollars) to Tea Party Candidates Across Existing Republican Contributors.

**Appendix Tables:**

- **Table G.6.1**: Itemized Contributions In Dollars From Existing Contributors (for Oster Ratio Calculation).

- **Table G.6.2**: Itemized Contributions In Dollars From New Contributors (for Oster Ratio Calculation).

- **Table G.8.1**: Zip-Code Itemized Contributions (By Total Number of Contributors) to Tea Party Candidates Among Existing vs. New Contributors.

- **Table G.9.1**: Itemized Contributions In Dollars From The 1st Tercile of (All) Donor Ideology (for Oster Ratio Calculation).

- **Table G.9.2**: Itemized Contributions In Dollars From The 2nd Tercile of (All) Donor Ideology (for Oster Ratio Calculation).

- **Table G.9.3**: Itemized Contributions In Dollars From The 2nd Tercile of (All) Donor Ideology (for Oster Ratio Calculation).

- **Table G.11.1**: Itemized Contributions In Dollars From The 1st Tercile of (Republican) Donor Ideology (for Oster Ratio Calculation).

- **Table G.11.2**: Itemized Contributions In Dollars From The 2nd Tercile of (Republican) Donor Ideology (for Oster Ratio Calculation).

- **Table G.11.3**: Itemized Contributions In Dollars From The 2nd Tercile of (Republican) Donor Ideology (for Oster Ratio Calculation).

- **Table G.13.1**: Zip-Code Itemized Contributions (By Total Number of Contributors) to Tea Party Candidates Across Existing Contributors.

- **Table G.13.2**: Zip-Code Itemized Contributions (By Total Number of Contributors) to Tea Party Candidates Across Existing Republican Contributors.

**Appendix Figures:**

- **Figure G.7.1**: Residualized Scatter Plot For Table 6, Column 3.

- **Figure G.7.2**: Residualized Scatter Plot For Table 6, Column 6.

- **Figure G.10.1**: Residualized Scatter Plot For Table 7, Column 3.

- **Figure G.10.2**: Residualized Scatter Plot For Table 7, Column 6.

- **Figure G.10.3**: Residualized Scatter Plot For Table 7, Column 9.

- **Figure G.12.1**: Residualized Scatter Plot For Table 8, Column 3.

- **Figure G.12.2**: Residualized Scatter Plot For Table 8, Column 6.

- **Figure G.12.3**: Residualized Scatter Plot For Table 8, Column 9.


### From `vote-analysis.R`:


**Main Table:**

- **Table 9**: Exposure to Fox News Increased Precinct Primary Vote Shares for Tea Party Candidates.

**Appendix Tables:**

- **Table A.1**: Balance Test: Demographic Differences by Matched Precinct-Level Election Data Availability.

- **Table H.1.1**: Tea Party Cand. Vote Share (for Oster Ratio Calculation).

- **Table H.3.1**: FNC Effects on Turnout (Share of Age-Eligible Population) in Republican Primaries.

**Appendix Figure:**

- **Figure H.2.1**: Residualized Scatter Plot For Table 9, Column 2.





